package com.briup.model.mapper.extend;

import com.briup.model.entity.Model;
import com.briup.model.entity.extend.EvaluateEx;
import com.briup.model.entity.extend.TraningEx;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 自定义模型接口
 */
public interface ModelExtendMapper {
    List<Model> findAll();
    // 根据模型id查找模型训练
    TraningEx findTraningExByModelIdAndVersion(@Param("modelId")Integer modelId, @Param("modelVersion") String modelVersion);

    List<EvaluateEx> findEvaluateExByTraningId(Integer trainingId);

    List<TraningEx> findTraningExByModelId(Integer id);

    Page<Model> findModelByCondition(Model model);

    Model findByName(String modelName);
}
